package lesson02;

public class Cat {
    public void jiao() {
        System.out.println("--Cat@jiao---");
    }
}
class JuCat extends Cat {
    @Override
    public void jiao() {
        System.out.println("---橘猫叫声很大-------");
    }
}
class YingDuanCat extends Cat {
    @Override
    public void jiao() {
        System.out.println("---英短叫声很小-------");
    }
}
class Meinv {
    public void baoCat(Cat cat) {
        cat.jiao();
    }
}